<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>设主治医生-关注列表</title>
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../css/font-awesome-4.3.0/css/font-awesome.min.css" />
		<link href="../css/config.css" rel="stylesheet" />
		<link href="../css/base.css" rel="stylesheet" />
		<link href="../css/index.css" rel="stylesheet" />
		<link href="../css/circle.css" rel="stylesheet" />
		<style>
			body {
				background: #efefef;
			}
			
			.post-master {
				margin-top: 10px;
				background: white;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav km-navbar white-header" style="box-shadow:none;">
			<a class="mui-icon mui-icon-back mui-pull-left mui-action-back"></a>
			<h1 id="title" class="mui-title km-view-title">我关注的</h1>
		</header>
		<div class="mui-content3" id="area-guanzhu">
			<div class="post-master">
				<a class="img-a" href="doctor-detail.html"><img src="../img/example1.png" /></a>
				<dl><dt>王医生</dt>
					<dd>内科</dd>
				</dl>
				<a class="guanzhu" ontouchstart="changyong()">主治医生</a>
				<span class="time">02-18&nbsp;12:44</span>
			</div>
			<div class="post-master">
				<a class="img-a" href="doctor-detail.html"><img src="../img/example1.png" /></a>
				<dl><dt>王医生</dt>
					<dd>内科</dd>
				</dl>
				<a class="guanzhu yiguanzhu" ontouchstart="changyong()">设为主治医生</a>
				<span class="time">02-18&nbsp;12:44</span>
			</div>
			<div class="post-master">
				<a class="img-a" href="doctor-detail.html"><img src="../img/example1.png" /></a>
				<dl><dt>王医生</dt>
					<dd>内科</dd>
				</dl>
				<a class="guanzhu yiguanzhu" ontouchstart="changyong()">设为主治医生</a>
				<span class="time">02-18&nbsp;12:44</span>
			</div>
		</div>
	</body>
	<script src="../js/mui.min.js"></script>
	<script src="../js/Global.js"></script>
	<script src="../js/zepto.min.js"></script>
	<script>
		mui.init({
			swipeBack: true,
			statusBarBackground: '#f7f7f7',
			statusBarStyle: 'UIStatusBarStyleDefault'
		});
		mui('.mui-scroll-wrapper').scroll();
		//=======院所电话-点击事件
		mui('#area-guanzhu').on('tap', 'a', function() {
			var id = this.id;
			var title = this.title;
			var href = this.href;
			if (href) {
				openWindow(href, href, {
					id: id,
					title: title
				});
			}
		})
		function changyong(){
			var rs=$(event.currentTarget);
			if(!rs.hasClass("yiguanzhu")){
				return;
			}else{
				var other=rs.parent(".post-master").siblings(".post-master").children(".guanzhu");
				rs.removeClass("yiguanzhu");
				other.addClass("yiguanzhu");
				rs.text("主治医生");
				other.text("设为主治医生")
			}
		}
	</script>

</html>